#依赖的父镜像
FROM openjdk:8-jdk
#指定作者信息
MAINTAINER jiatao

#执行命令
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
COPY sources.list /etc/apt/sources.list

RUN apt-get update --fix-missing
RUN apt-get install -y openssh-client=1:7.2p2-4ubuntu2.8 --allow-downgrades --allow-unauthenticated
RUN apt-get install -y openssh-sftp-server --allow-downgrades --allow-unauthenticated
RUN apt-get install -y openssh-server --allow-downgrades --allow-unauthenticated

EXPOSE 8080
EXPOSE 443


CMD java -version